package cn.com.xuhx.testMenu;

import cn.com.xuhx.enmu.SexEnmu;
import cn.com.xuhx.mapper.PersonMapper;
import cn.com.xuhx.pojo.Person;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 测试枚举
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class MenuTest {

    @Autowired
    private PersonMapper personMapper;

    @Test
    public void insertPerson(){
        Person person = new Person(null, "赵无忌",24, SexEnmu.MAN);
        personMapper.insert(person);
    }
}
